<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String contextPath = request.getContextPath(); %>
<%@page import="common.*" %>
<%
	Customer user = (Customer)session.getAttribute("user");
	if(user == null || user.equals("null")) response.sendRedirect(request.getContextPath() +"/index.jsp");
	else{
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%= contextPath %>/css/style.css" rel="stylesheet" type="text/css" />
		<link href="<%= contextPath %>/css/sidemenu.css" rel="stylesheet" type="text/css" />
		<title>Title</title>
	</head>
	<body>
		<div id="wrapper">
			<div id="sidemenu"">
				<jsp:include page="sidemenu.jsp" flush="true"/>
			</div>
			<div id="contents">
			
				<h1>ご登録情報</h1>
				
				<table id="info">
					<tr>
						<th>顧客コード</th>
						<td><%=user.getCode()%></td>
					</tr>
					<tr>
						<th>お名前</th>
						<td><%=user.getName()%></td>
					</tr>
					<tr>
						<th>郵便番号</th>
						<td><%=user.getPostcode()%></td>
					</tr>
					<tr>
						<th>ご住所</th>
						<td><%=user.getAddress()%></td>
					</tr>
					<tr>
						<th>電話番号</th>
						<td><%=user.getTel()%></td>
					</tr>
					<tr>
						<th>クレジットカード番号</th>
						<td><%=user.getCard()%></td>
					</tr>
				</table>

			</div>
		</div>
	</body>
</html>
<%}%>